package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Customer;
import cn.wolfcode.crm.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ICustomerService {
	void insert(Customer customer);
	void delete(Long id);
	void update(Customer customer);
	Customer select(Long id);
	List<Customer> list();

	PageInfo<Customer> query(QueryObject qo);

    void updateStatus(Long customerId, int status);

    void updateSeller(Long customerId,Long newSellerId);

	void updateStatusAndSellerId(Long customerId, int status, Long newSellerId);

    List<Customer> selectByStatus(int status);
}
